<html style="overflow-x:hidden;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="no-cache">
<title>用户授权</title>
<link rel="stylesheet" type="text/css" href="../style/style.css" />
<script type="text/javascript" src="/js/jquery/lib/jquery-1.4.4.min.js"></script>
<script type="text/javascript">
		function checkParent(s){
				$("#moduleMgrPurview"+s).attr("checked","checked");
		}
        //  子节点全选反选

        
         
          //  子节点全选反选
        function checknoall(s, obj) {
            $(".checkAll"+s).each(function(){
            	this.checked=obj.checked;
            })//获取所有子多选框
        }
</script>
		
		
</head>


<body>


<form action="accountEmpower.action" name="empower">
<div id="Content">
  <div style="width:95%">
  <div  class="DesktopBlock" id="FUNC00004">
  <div id="Block">
      <div id="BlockHead">
            <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
              <tbody>
                <tr valign="center">
                  <td width="5"></td>
                  <td>账号授权</td> 
                  <td width="5"></td>
                </tr>
              </tbody>
            </table>
          </div>
         <div id="BlockDetail">
           <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#f9f9f9">
             <tbody>
             <tr>
                 
                 <td width="90%" colspan="4" height="22" align="left" bgcolor="#ffffff">
                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
                 <td width="84%"  height="30" align="left" bgcolor="#ffffff" class="h2-red"><span style="margin-right:10px;">
               为【${pers.personnel_name?default('')}】的登录账户【${pers.account_name?default('')}】授权</span></td>
                 <td width="16%"  height="22" align="right" bgcolor="#ffffff">
                 
                  <input type="hidden" name="personnel_id" value="${pers.personnel_id?default(0)}">
                 </td></tr>
               
</table>

                 
                 </td></tr>
                 <#assign s=0>
                 <#--取得模块类别--> <#list sysModuleTypeList?if_exists as root>
               		<tr>
                 <td height="20" colspan="4" bgcolor="#EAEAEA" class="linetitle"><span style="margin-left:5px;">[${root.MODULE_TYPE_NAME}]</span></td>
               		</tr>
               		
               		<#list root.sysModuleList?if_exists as module>
               		
               			<#if module.parent_module_id==0>
               				<#assign s=s+1>
               				<tr>
               					<td width="25%" height="20" align="left" bgcolor="#969696"><label><input name="moduleMgrPurview" class="checkAll" onclick="javascript:checknoall('${s}',this)"  style="width:13px; height:13px; margin-top:2px;" type="checkbox" <#if module.ifchecked==1>checked="checked"</#if> id="moduleMgrPurview" value="${module.MODULE_ID}">&nbsp;${module.MODULE_NAME}</label></td>
 
                				 <td  width="25%" height="20" align="left" valign="middle" bgcolor="#969696">&nbsp;</td>
                				  <td width="25%" height="20" align="left" valign="middle" bgcolor="#969696">&nbsp;</td>
                				  <td width="25%" height="20" align="left" valign="middle" bgcolor="#969696">&nbsp;</td>
                  			 </tr>
                  			 <tr>
                  			 <#assign k=0>
                  			 <#list root.sysModuleList?if_exists as module1>
                  			 	
                  			 	<#if module1.parent_module_id==module.MODULE_ID>
                  			 		
                  			 		<td  height="18" align="left" bgcolor="#ffffff"><label ><input name="moduleMgrPurview" class="checkAll${s}" style="width:13px; height:13px; margin-top:2px;"  type="checkbox" <#if module1.ifchecked==1>checked="checked"</#if> id="moduleMgrPurview${s}" value="${module1.MODULE_ID}">&nbsp;${module1.MODULE_NAME}</label></td>
                  			 		<#assign k=k+1>
                  			 	</#if>
                  			 	
                  			 </#list>
                  			 <#if k lt 4>
                  			 		<#assign p=4-k>
                  			 		<#list 1..p as b>
                  			 			<td height="18" align="left" bgcolor="#ffffff">&nbsp;</td>
                  			 		</#list>
                  			 	</#if>
                  			 </tr>
               			</#if>
               		</#list>
               </#list>
               <tr>
    <td height="30" colspan="6" align="center" bgcolor="#FFFFFF" class="STYLE10"><div style="margin:8px 70px;"><div class="yuding_btn  left">
      <!-- 按钮  -->
      <span><span class="xp-b-leftSubmit2"><!-- --></span>
        <a id="uw_flight_submit_lnk" class="xp-b-submit2" style=" line-height:30px;" href="#" onclick="empower.submit()">保存角色信息</a> 
      	<span class="xp-b-rightSubmit2"><!-- --></span></span>
      </div>
      <div class="yuding_btn">
        <!--  按钮  -->
        <span><span class="xp-b-leftSubmit2"><!-- --></span>
          <a id="uw_flight_submit_lnk" class="xp-b-submit2" style=" line-height:30px;" href="#" onclick="parent.$.fn.colorbox.close();">关闭窗口</a> 
      	<span class="xp-b-rightSubmit2"><!-- --></span></span>
      </div></div></td>
    </tr>
             </tbody>
           </table>
         </div>                        
</div>
</div>
</div>
</div>
</form>
</body></html>